<template>
  <div>Startup...</div>
</template>
<script>
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'
import gmconfig from '@/api/gmconfig.json'

export default {
  setup() {
    const router = useRouter() // 获得Router

    onMounted(() => {
      const urlHome = gmconfig.urlHome
      console.log('配置的首页：' + urlHome)
      // 跳转到配置的首页
      router.replace(urlHome)
    })
  }
}
</script>
